// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import 'styles/global.scss'
import 'styles/font2/iconfont.css'
import 'styles/iconfont.css'
import jq from 'jquery'
//import layer from 'vue-layer'
// Vue.prototype.$ = jq;
window.$=jq;
// let layer = window.layer;
Vue.prototype.$layer = layer;
// import axios from 'axios'
Vue.prototype.LinkUrlImg = "http://dadi.dp.soit8.com";
// Vue.prototype.LinkUrlImg = "";
// 注册一个全局自定义指令 `v-focus`
Vue.directive('focus', {
  // 当被绑定的元素插入到 DOM 中时……
  inserted: function (el) {
    // 聚焦元素
    el.focus()
  }
})
Vue.config.productionTip = false;

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
